package quick.portal.service;

import quick.communication.AsyncHttpResponseHandler;
import quick.communication.HttpClient;
import quick.communication.RequestParams;

public class EmailInfoService extends BaseService {
	
	public void deleteMyReceiveEmail(String ids,AsyncHttpResponseHandler handler)
	{
		RequestParams params = this.getParams()
				.AddParam("Ids", ids);
		
		HttpClient.post(portal_url+"Systems/MyReceiveEmail/Recycle/", params, handler);
	}
	
	public void deleteMySendEmail(String ids,AsyncHttpResponseHandler handler)
	{
		RequestParams params = this.getParams()
				.AddParam("Ids", ids);
		
		HttpClient.post(portal_url+"Systems/MySendEmail/Recycle/", params, handler);
	}
	
	public void DeleteDustbinEmail(String ids,AsyncHttpResponseHandler handler)
	{
		RequestParams params = this.getParams()
				.AddParam("Ids", ids);
		
		HttpClient.post(portal_url+"Systems/Email/DeleteDustbinEmail/", params, handler);
	}
	
	public void restoreDustbinEmail(String ids,AsyncHttpResponseHandler handler)
	{
		RequestParams params = this.getParams()
				.AddParam("Ids", ids);
		
		HttpClient.post(portal_url+"Systems/Email/RestoreDustbinEmail/", params, handler);
	}
}
